package com.aaa.mapper;

import com.aaa.entity.Oder;
import com.aaa.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {
    List<Map<String, Object>> loadfind(String state, String ordernum, String rtid);

    Integer OverTimeState(Integer id,String state);

    Integer changestate(String state, Integer oid);

    Integer checkoutState(Integer orderid);

    Integer changemoney(double money, Integer oid);

    //查询当前一周营业额
    List<Oder> week();

    //查询上周营业额SQL
    List<Oder> lastweek();

    //查询本月SQL数据接口
    List<Oder> month();


    /**
     * 查询某个时间段之间的数据SQL
     * @param begin  开始日期
     * @param finish 结束日期
     * @return
     */
    List<Oder> some(String begin, String finish);

    List<Map<String, Object>> finddate(Integer tid);

    Integer checkinOrder(Order order);
}
